package cn.edu.cqie.utils;

import cn.edu.cqie.enums.RespToAppEnum;

public class BizException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1594315591333160895L;

	private String code;
	private String message;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public BizException() {

	}

	public BizException(String code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	public BizException(RespToAppEnum resp) {
		super();
		this.code = resp.getCode();
		this.message = resp.getMessage();
	}

}
